package model

import (
	"gorm.io/gorm"
)

type Shop struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(30);comment:商品名称"`
	Price  float64 `gorm:"type:decimal(10,2);comment:商品价格"`
	Num    int     `gorm:"type:int(11);comment:库存"`
	Status string  `gorm:"type:varchar(30);comment:商品状态"`
	Cause  string  `gorm:"type:varchar(30);comment:变更原因"`
	Audit  int     `gorm:"type:int(11);comment:1 待审核 2 审核中 3 通过 4 驳回"`
}
type WindowShop struct {
	gorm.Model
	WindowId int     `gorm:"type:int(11);comment:橱窗ID"`
	Name     string  `gorm:"type:varchar(30);comment:商品名称"`
	Price    float64 `gorm:"type:decimal(10,2);comment:商品价格"`
	Num      int     `gorm:"type:int(11);comment:库存"`
	Image    string  `gorm:"type:varchar(500);comment：图片"`
}
